const { base64decode } = require('nodejs-base64')
const apis = {
    ApiEventManagementEventManagementMobileListPost: '2LwFSaF9mduVEdh1mbnFWZl1nbvQXRlZnbNRWYh52ZtVWZ050Lv1mYslUZpx3c=Q', // 事件审批、处理、跟踪查询
  ApiEventManagementEventManagementMyMobileListPost: '2LwFSaF9mduVEdh1mbnFWZl1nbvQXRlZnbNRWYh52ZtVWZ050L51WTi9WalxGTzlAd==', // 我的审批、处理、跟踪查询
  ApiEventManagementEventManagementProcessEditQueryPost: '2LwFSaF9mduVEdh1mbnFWZl1nbvQXRlZnbNRWYh52ZtVWZ051LyB2blN3cFNGZ0lXUlVnc=k', // 事件处理详情查询
  ApiEventProcessingEventProcessingSolutionPost: '2LwFSaF9mduVFdyB2blN3cpNmbvcXRlZnbQRmcj9XZzNWan51LvNHb0VWau9', // 事件处理详情-解决完成
  ApiEventProcessingEventProcessingCreateRemarkPost: '2LwFSaF9mduVFdyB2blN3cpNmbvcXRlZnbQRmcj9XZzNWan50LyNWZ0FVZlJWbyFwa==', // 事件处理详情-添加备注
  ApiEventProcessingEventProcessingUnableToSolvePost: '2LwFSaF9mduVFdyB2blN3cpNmbvcXRlZnbQRmcj9XZzNWan51LuVWYsJVZvR2Us9md=U', // 事件处理详情-无法解决
  ApiEventProcessingEventProcessingUploadFilePost: '2LwFSaF9mduVFdyB2blN3cpNmbvcXRlZnbQRmcj9XZzNWan51LwVGbh9EZpZGb=U', // 上传文件
  ApiEventTrackEventTrackCloseEventPost: '2LwFSaF9mduVFdyRWYrN0L2VWZ05HVhJ2Yvs2Qvx2cFVmduVAd==', // 事件跟踪-事件跟踪详情-关闭事件
  ApiEventTrackEventTrackActivationProcessPost: '2LwFSaF9mduVFdyRWYrN0L2VWZ05HVhJ2YvsWQ0NXahZGdvllbyB2blN3c=M', // 事件跟踪-事件跟踪详情-激活继续处理
  ApiEventTrackEventTrackActivationPersonnelPost: '2LwFSaF9mduVFdyRWYrN0L2VWZ05HVhJ2YvsWQ0NXahZGdvllblBncvNmbl5Ab==', // 事件分配人员
  ApiAuthorityMobileAuthGetValidationCodePost: '2LwFSaB9XdoR3bpJHdvkWTi9WalxXQ0VCaH9XZWRWYpxGZ0FWau92Qk9QZ==', // 获取验证码
  ApiAuthorityMobileAuthVerifyClientPost: '2LwFSaB9XdoR3bpJHdvkWTi9WalxXQ0VCaW9XZpJnZDlGbllnb=Q', // 验证客户端
  ApiAuthorityMobileAuthLogoutPost: '2LwFSaB9XdoR3bpJHdvkWTi9WalxXQ0VCaM92bvdXd=Q', // 注销
  ApiAuthorityMobileAuthDirectLoginPost: '2LwFSaB9XdoR3bpJHdvkWTi9WalxXQ0VCaE9XalJ3YMR2bpdgb==', // 免输入账号 直接登录
  ApiAuthorityMobileAuthLoginPost: '2LwFSaB9XdoR3bpJHdvkWTi9WalxXQ0VCaM92bpdgb==', // 登录
  ApiMobileKnowledgeBaseMobileKnowledgeBaseListPost: '2LwFSaN92bpJGbLVmb39GbkV2ZCVXYlN0Lv1mYslUZut3bsdWZnRUZhJ2cvUGTzlAd==', // 知识库查询
  ApiMobileKnowledgeBaseMobileKnowledgeBaseQueryPost: '2LwFSaN92bpJGbLVmb39GbkV2ZCVXYlN0Lv1mYslUZut3bsdWZnRUZhJ2cvUXUlVnc=k', // 知识库详情查询
  ApiAppConfigOptionConfigGetEvntMstEventTypePost: '2LwFSaB9HcDB2bm5Wavc3T0BWau92Qu9mZnl0LldEd2VnbNR3cFRmduVFd5RGc=U', // 事件类型下拉框
  ApiAppConfigOptionConfigGetAllEventLevelPost: '2LwFSaB9HcDB2bm5Wavc3T0BWau92Qu9mZnl0LldEdsFEb2VWZ05GT2VWZ=w', // 事件等级下拉框
  ApiAppConfigOptionConfigGetBusinessFunctionPost: '2LwFSaB9HcDB2bm5Wavc3T0BWau92Qu9mZnl0LldEd1J2culXZzNnRuV3YpR2b=4', // 业务职能下拉框
  ApiAppConfigOptionConfigGetEvntMstVenuePost: '2LwFSaB9HcDB2bm5Wavc3T0BWau92Qu9mZnl0LldEd2VnbNR3cWRWZ15QZ==', // 场馆信息
  ApiAppConfigOptionConfigGetEvntMstUserVenuePost: '2LwFSaB9HcDB2bm5Wavc3T0BWau92Qu9mZnl0LldEd2VnbNR3cVR2cyVmVuVWd=U', // 根据人员获取对应的场馆信息
  ApiAppConfigOptionConfigGetConfigPost: '2LwFSaB9HcDB2bm5Wavc3T0BWau92Qu9mZnl0LldEdvNmbpZwZ==', // 获取服务端配置
  ApiAppConfigOptionConfigGetVerificationSwitchPost: '2LwFSaB9HcDB2bm5Wavc3T0BWau92Qu9mZnl0LldFdlZmcmlWahNGdvllb3NXajRAa==', // 获取免登录配置
  ApiPresentationPresentationCreatePost: '2LwFSaQ9mczVWZ05XYpR2bv4HUlJ2cuVGd0FWau90LyNWZ0FQZ==', // 新增报告信息
  ApiPresentationPresentationCreateVenuePost: '2LwFSaQ9mczVWZ05XYpR2bv4HUlJ2cuVGd0FWau90LyNWZ0FVZlZnblV', // 分配人员
  ApiPresentationPresentationApprovalPost: '2LwFSaQ9mczVWZ05XYpR2bv4HUlJ2cuVGd0FWau90LwFHcvJmdsF', // 审批通过并上报
  ApiPresentationPresentationGetProblemListPost: '2LwFSaQ9mczVWZ05XYpR2bv4HUlJ2cuVGd0FWau90LldFdyB2bsJWZM1Xa0N', // 事件等级表
  ApiPresentationPresentationGetVenueUserListPost: '2LwFSaQ9mczVWZ05XYpR2bv4HUlJ2cuVGd0FWau90LldFdlZnblVXVlNkcpx3c=Q', // 场馆人员信息
  ApiPresentationPresentationGetEvntByIdPost: '2LwFSaQ9mczVWZ05XYpR2bv4HUlJ2cuVGd0FWau90LldEd2VnbCRUekl', // 撤回事件信息
  ApiPresentationPresentationGetEvntByAsyncIdPost: '2LwFSaQ9mczVWZ05XYpR2bv4HUlJ2cuVGd0FWau90LldEd2VnbCRUezFWej5WS=Q', // 忽略事件信息
  ApiAuthorityResourceListPost: '2LwFSaB9XdoR3bpJHdvkmUzV3byV2YvUGTzlAd==', // 获取资源记录集
  ApiAuthorityResourceGetResourceBySystemIdPost: '2LwFSaB9XdoR3bpJHdvkmUzV3byV2YvU2R0VmUzV3byV2YCVVe5N3clRUbkl', // 根据系统Id获取资源记录集
  ApiAuthorityResourceGetResourceIdByRoleIdPost: '2LwFSaB9XdoR3bpJHdvkmUzV3byV2YvU2R0VmUzV3byV2YJVEZ5JmUs9UZkl', // 根据角色Id获取角色授权资源Id记录集
  ApiAuthorityResourceCreatePost: '2LwFSaB9XdoR3bpJHdvkmUzV3byV2YvU3QlJXYlR', // 新增资源
  ApiAuthorityResourceEditQueryPost: '2LwFSaB9XdoR3bpJHdvkmUzV3byV2YvUWRpRFd1FXZ5J', // 获取要更新的资源信息
  ApiAuthorityResourceEditSavePost: '2LwFSaB9XdoR3bpJHdvkmUzV3byV2YvUWRpRFdhNmd=U', // 更新保存
  ApiAuthorityResourceRemovePost: '2LwFSaB9XdoR3bpJHdvkmUzV3byV2YvUmUtV3blZ', // 移除资源
  ApiAuthorityRoleListPost: '2LwFSaB9XdoR3bpJHdvkmUs9SZM9Xa0N', // 获取角色记录集
  ApiAuthorityRoleGetAuthResourceIdByRoleIdPost: '2LwFSaB9XdoR3bpJHdvkmUs9SZH9XZBRXdoRmUzV3byV2YJVEZ5JmUs9UZkl', // 获取角色要更新的授权资源记录集
  ApiAuthorityRoleCreateOrEditSaveRoleAndRoleResourcePost: '2LwFSaB9XdoR3bpJHdvkmUs9SZD9mchVGdPVkckVXaTRXYlZmUs9UZuFFZvJGbSVXZvNXdjJQZ==', // 创建或更新保存角色/角色授权资源
  ApiAuthorityRoleCreatePost: '2LwFSaB9XdoR3bpJHdvkmUs9SZD9mchVGd=U', // 新增角色
  ApiAuthorityRoleEditQueryPost: '2LwFSaB9XdoR3bpJHdvkmUs9SZF9GZ0lXUlVnc=k', // 获取要更新的角色信息
  ApiAuthorityRoleEditSavePost: '2LwFSaB9XdoR3bpJHdvkmUs9SZF9GZ0l2U2FQZ==', // 更新保存
  ApiAuthorityRoleRemovePost: '2LwFSaB9XdoR3bpJHdvkmUs9SZS9WZv1md=U', // 移除角色
  ApiAuthorityUserListPost: '2LwFSaB9XdoR3bpJHdvkXVlNicM9Xa0N', // 获取用户记录集
  ApiAuthorityUserGetCurrentLoginUserAuthResourcePost: '2LwFSaB9XdoR3bpJHdvkXVlNicH9XZDRXdyJWZ05GTn9WaV52cyVXQ0VFalJ2c19mclN', // 获取当前用户授权资源记录集
  ApiAuthorityUserGetRoleIdBySystemIdAndUserIdPost: '2LwFSaB9XdoR3bpJHdvkXVlNicH9XZSR2blxWSCRVe5N3clRUbklWQk5XVlNkckl', // 根据系统Id和用户Id获取用户已分配的角色id记录集
  ApiAuthorityUserBatchSaveUserRolesPost: '2LwFSaB9XdoR3bpJHdvkXVlNicC9XYjRFahNmdVV2cyVmUs9XZ=M', // 批量保存用户角色
  ApiAuthorityUserSaveBusinessFunctionPost: '2LwFSaB9XdoR3bpJHdvkXVlNicT9XYlZnQzVWal53cGNWdj5Gdvlgb==', // 分配业务职能

  }
  if (process.env.NODE_ENV === 'development') {
    Object.keys(apis).forEach((key) => {
      apis[key] = `/apis${base64decode(changeStr(apis[key]))}`
    })
  } else {
    Object.keys(apis).forEach((key) => {
      apis[key] = `${base64decode(changeStr(apis[key]))}`
    })
  }
  function changeStr (str) {
    let arr = str.split('')
    let arr1 = arr.filter((item, index) => {
      return index % 2 === 0
    })
    let arr2 = arr.filter((item, index) => {
      return index % 2 === 1
    })
    let str1 = ''
    for (let i in arr1.length > arr2.length ? arr1 : arr2) {
      if (arr2[i] !== undefined) {
        str1 = str1 + arr2[i]
      }
      if (arr1[i] !== undefined) {
        str1 = str1 + arr1[i]
      }
    }
    return str1
  }
  export default apis
  